package com.yykj.user.center.server.form;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yykj.common.util.serializer.LocalDate2LongSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * @author chenl
 * @version 1.0
 * @date 2021/11/9 19:17
 */
@Data
public class InspectApplyForm {

    @NotBlank(message = "请传入检查/检测项目Id")
    @ApiModelProperty("检查/检测项目Id")
    private String itemIds;

    @NotBlank(message = "请传入检查/检测项目名称")
    @ApiModelProperty("检查/检测项目名称")
    private String itemNames;

    @NotBlank(message = "请传入就诊卡Id")
    private String patientCardId;

    @NotBlank(message = "请传入患者名称")
    private String patientName;

    @NotBlank(message = "请传入就诊卡号")
    private String cardNo;

//    @NotBlank(message = "请传入检查目的")
    @ApiModelProperty("检查目的")
    private String purpose;

//    @NotBlank(message = "请传入注意事项")
    @ApiModelProperty("注意事项")
    private String attention;

    @NotNull(message = "请传入申请医生Id")
    @ApiModelProperty("申请医生Id")
    private String appDoctorId;

    @NotNull(message = "请传入申请医生姓名")
    @ApiModelProperty("申请医生姓名")
    private String appDoctorName;

    @NotNull(message = "请传入申请类型")
    @ApiModelProperty("类型：1检查 2检验")
    private Integer orderType;

    @ApiModelProperty("就诊科室ID")
    private Integer seeDeptId;

    @ApiModelProperty("就诊科室名称")
    private String seeDeptName;

    @NotNull(message = "请传入医院Id")
    private Integer hospitalId;

    @NotNull(message = "请传入医院名称")
    private String hospitalName;

    @ApiModelProperty("有效天数")
    private Integer valid;

    @ApiModelProperty("患者ID")
    private String accountId;
}
